package com.esd.crm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.esd.crm.entity.Orders;
import com.esd.crm.mapper.OrdersMapper;
import com.esd.crm.service.OrdersService;

@Service
public class OrdersServiceImpl implements OrdersService {

	@Autowired
	private OrdersMapper mapper;
	

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Orders record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(Orders record) {
		// TODO Auto-generated method stub
		return mapper.insertSelective(record);
	}

	@Override
	public Orders selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Orders record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(Orders record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public int updateByPrimaryKey(Orders record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Orders> selectOrderNumbers(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectOrderNumbers(param);
	}

	@Override
	public List<Orders> selectByParam(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByParam(param);
	}

	@Override
	public Integer selectByParamCount(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByParamCount(param);
	}
	@Override
	public Orders selectByOrderNumber(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByOrderNumber(param);
	}

	@Override
	public Orders selectNumberTotalByOrderNumber(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectNumberTotalByOrderNumber(param);
	}

	@Override
	public int selectMaxOrderNumber(String nowdate) {
		// TODO Auto-generated method stub
		return mapper.selectMaxOrderNumber(nowdate);
	}

	@Override
	public Orders selectByCount(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByCount(param);
	}
}
